package cn.kaguyaever.dao;

import cn.kaguyaever.entity.Judge;

import java.util.List;

public interface JudgeDao {

    public int createJudge(Judge judge);

    public List<Judge> queryAllJudgeByProjectId(String projectId);

    public Judge queryJudgeByJudgenameAndPassword(String name,String password,String projectId);

    public Judge queryJudgeByJudgeId(Integer judgeId);

    public Judge queryJudgeByJudgename(String name,String projectId);

    public int setStatus(Integer judgeId);

    public int clearStatus(String projectId);

    public int votedJudge(Integer judgeId);

    public int deleteJudge(Integer judgeId);

    public int deleteAllJudge(String projectId);
}
